Integrating SwiftUI into UIKit Apps by Natalia Panferova
Author:Natalia Panferova
Language: eng
Format: epub
Publisher: Nil Coalescing Limited
Published: 2022-12-15T00:00:00+00:00
Styling collection cells in SwiftUI
When we create our custom UICollectionView or UITableView cell UI using UIHostingConfiguration, we can use SwiftUI APIs to customize cell styling. We can modify the alignment of list row separators, change cell margins and background. We are going to see how we can apply such customizations by continuing to work on our sample Fun Activities app.
Change list row separator alignment
By default list row separators are aligned to the first Text view if one is present in the cell. In many cases this is exactly what we want, but sometimes we need to customize the alignment to meet our specific design needs.
For example, in our sample app the first Text view from the leading edge contains the activity date. It uses a small font size and itâs not the main component of the cell. It would probably be better to draw the separator starting from the activity name instead.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(11920)
Hello! Python by Anthony Briggs(9383)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(9352)
The Mikado Method by Ola Ellnestam Daniel Brolund(9321)
Dependency Injection in .NET by Mark Seemann(8866)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(7858)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(7348)
Grails in Action by Glen Smith Peter Ledbrook(7303)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7124)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(5968)
Kotlin in Action by Dmitry Jemerov(4653)
Practical Vim (for Kathryn Amaral) by Drew Neil(3731)
Cracking the GRE Premium Edition with 6 Practice Tests, 2015 (Graduate School Test Preparation) by Princeton Review(3600)
Linux Device Driver Development Cookbook by Rodolfo Giometti(3446)
Learn Windows PowerShell in a Month of Lunches by Don Jones(3252)
Learning Java by Patrick Niemeyer & Daniel Leuck(2873)
Learning React: Functional Web Development with React and Redux by Banks Alex & Porcello Eve(2844)
Becoming a Dynamics 365 Finance and Supply Chain Solution Architect by Brent Dawson(2831)
Microservices with Go by Alexander Shuiskov(2618)